/*
 * Copyright (c) 2015-2018 SHENZHEN TOMTOP SCIENCE AND TECHNOLOGY DEVELOP CO., LTD. All rights reserved.
 *
 * 注意：本内容仅限于深圳市通拓科技研发有限公司内部传阅，禁止外泄以及用于其他的商业目的 
 */
package com.poitest.controller;

import excel.verify.AbstractVerifyBuidler;
import excel.verify.CellVerifyEntity;
import excel.verify.StringVerify;

/**
 * 导入用户校验类
 * 
 * @author Administrator
 *
 */
public class EvaluateVerifyBuilder2 extends AbstractVerifyBuidler {

	private static EvaluateVerifyBuilder2 builder = new EvaluateVerifyBuilder2();

	public static EvaluateVerifyBuilder2 getInstance() {
		return builder;
	}

	/**
	 * 定义列校验实体：提取的字段、提取列、校验规则
	 */
	private EvaluateVerifyBuilder2() {
		cellEntitys.add(new CellVerifyEntity("name", "A", new StringVerify("姓名", true)));
		cellEntitys.add(new CellVerifyEntity("sex", "B", new StringVerify("性别", true)));
		cellEntitys.add(new CellVerifyEntity("content", "C", new StringVerify("简介", true)));
		cellEntitys.add(new CellVerifyEntity("url", "D", new StringVerify("图片URL", true)));
		cellEntitys.add(new CellVerifyEntity("rid", "E", new StringVerify("选美Id", true)));
		cellEntitys.add(new CellVerifyEntity("psize", "F", new StringVerify("投票数", true)));
		// 必须调用
		super.init();
	}
}
